package com.xyzim.firstcode;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

import com.xyzim.firstcode.base.BaseActivity;
import com.xyzim.firstcode.ui.FruitActivity;
import com.xyzim.firstcode.ui.FruitAdapter;


public class MainActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        Log.d("main activity","on create execute");

        Button btnRecylerView = (Button)findViewById(R.id.btnRecyclerView);
        btnRecylerView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent =new Intent(v.getContext(), FruitActivity.class);
                startActivity(intent);
            }
        });
    }
}
